package ro.unibuc.nautilus.domain;

import java.util.Date;

public class Employee extends Entity {
	
	private String sirName;
	
	private String firstName;
	
	private String phoneNumber;
	
	private String address;
	
	private Date hireDate;
	
	private String qualification;
	
	// functie in sensul de job
	private String function;
	
	public double salary;
	
	/**
	 * The ship on which this employee works on
	 */
	private Ship ship;

	public String getSirName() {
		return sirName;
	}

	public void setSirName(String sirName) {
		this.sirName = sirName;
	}

	public Employee() {
		
	}
	
	public Employee(String sirName, String firstName, String phoneNumber,
			String address, Date hireDate, String qualification,
			String function, double salary) {
		super();
		this.sirName = sirName;
		this.firstName = firstName;
		this.phoneNumber = phoneNumber;
		this.address = address;
		this.hireDate = hireDate;
		this.qualification = qualification;
		this.function = function;
		this.salary = salary;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getHireDate() {
		return hireDate;
	}

	public void setHireDate(Date hireDate) {
		this.hireDate = hireDate;
	}

	public String getQualification() {
		return qualification;
	}

	public void setQualification(String qualification) {
		this.qualification = qualification;
	}

	public String getFunction() {
		return function;
	}

	public void setFunction(String function) {
		this.function = function;
	}

	public Ship getShip() {
		return ship;
	}

	public void setShip(Ship ship) {
		this.ship = ship;
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}
	
	public String getLabel() {
		return sirName + " " + firstName;
	}
}
